import React from "react";
import ReactDOM from "react-dom/client";
import App from "./App.tsx";

// 导入 RouterProvider 和 createBrowserRouter 
import { RouterProvider, createHashRouter } from "react-router-dom";

// 导入路由配置
import router from "@/router/router.jsx";

ReactDOM.createRoot(document.getElementById("root")).render(
    <React.StrictMode>
        {/* 注入路由  */}
        <RouterProvider router={createHashRouter(router)} />
    </React.StrictMode>
);